package me.ereach;

public class Main {

    public static void main(String[] args) {
        System.out.println(getFact(100));
    }

    public static String getFact(int n) {
        String str = n + "=";

        int i = 2;

        while (i <= n) {
            if (n % i == 0) {
                str += i + "*";
                n = n / i;
            }
            else {
                i++;
            }
        }

        return str.substring(0, str.length()-1);
    }
}
